<template>
    <div class="sidebar">
    	
    </div>
</template>

<script>
    export default {
        data() {
            return {
                 menuList: [{
							"path": '1',
							"name": '系统设置',
							"iconCls": 'el-icon-setting', //图标样式class
							"children": [{
									"path": '1',
									"name": '用户管理',
									"url": "permissions/home.html"
								},
								{
									"path": '2',
									"name": '权限设置',
									"url": "user/list.html"
								},
								{
									"path": '3',
									"name": '网站设置',
									"url": "config/index.html"
								}
							]
						},
						{
							"path": '2',
							"name": '数据库管理',
							"leaf": true, //只有一个节点
							"iconCls": 'el-icon-message', //图标样式class
							"icon": 'el-icon-setting',
							"children": [{
								"path": '1',
								"name": '数据库管理',
								"url": "database/index.html"
							}]

						},
						{
							"path": '3',
							"name": '栏目管理',
							"leaf": true, //只有一个节点
							"iconCls": 'el-icon-message', //图标样式class
							"icon": 'el-icon-setting',
							"children": [{
								"path": '1',
								"name": '栏目管理',
								"url": "column/list.html"
							}]

						},
						{
							"path": '4',
							"name": '广告管理',
							"leaf": true, //只有一个节点
							"iconCls": 'el-icon-message', //图标样式class
							"icon": 'el-icon-setting',
							"children": [{
								"path": '1',
								"name": '广告管理',
								"url": "advertising/list.html"
							}]

						}, {
							"path": '5',
							"name": '新闻管理',
							"leaf": true, //只有一个节点
							"iconCls": 'el-icon-message', //图标样式class
							"icon": 'el-icon-setting',
							"children": [{
								"path": '1',
								"name": '新闻管理',
								"url": "news/list.html"
							}]

						}
					]
            }
        },
        methods: {
        		showMenu: function(i, status) {
						console.log(status)
						this.$refs.menuCollapsed.getElementsByClassName('submenu-hook-' + i)[0].style.display = status ? 'block' : 'none';
					}
        }
    }
</script>